﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using Project.DBMAPPING;
using Project.DTO;
using Project.IDAO;
using TransactionHistory = Project.DTO.TransactionHistory;

namespace Project.DAO
{
    public class TransactionOrderProductDAO:ITransactionOrderProdcuctDAO
    {
        public void OrderProduct(ProductOrder productOrder)
        {
            // Declare variable to access database
            var database = new DbMappingDataContext();
            database.SP_TRANSACTION_ORDERPRODUCT(productOrder.UserName, productOrder.TotalPrice, productOrder.ProductId,
                productOrder.Quantity, productOrder.UnitPrice);
        }
    }
}
